package models;

import java.util.*;
import javax.persistence.*;

import play.db.ebean.*;
import play.data.format.*;
import play.data.validation.*;
import com.avaje.ebean.*;

@Entity
public class QcmNiveauquestion extends Model {

	@Id
	private Long idQcmNiveauQuestion;

	@ManyToOne
	private Qcm qcm;

	@ManyToOne
	private NiveauQuestion niveauQuestion;

	@Constraints.Required
	private double pointPositif;

	@Constraints.Required
	private double pointNegatif;

	/*
	 * GETTER ET SETTER
	 */
	public Long getIdQcmNiveauQuestion() {
		return idQcmNiveauQuestion;
	}

	public void setIdQcmNiveauQuestion(Long idQcmNiveauQuestion) {
		this.idQcmNiveauQuestion = idQcmNiveauQuestion;
	}

	public Qcm getQcm() {
		return qcm;
	}

	public void setQcm(Qcm qcm) {
		this.qcm = qcm;
	}

	public NiveauQuestion getNiveauQuestion() {
		return niveauQuestion;
	}

	public void setNiveauQuestion(NiveauQuestion niveauQuestion) {
		this.niveauQuestion = niveauQuestion;
	}

	public double getPointPositif() {
		return pointPositif;
	}

	public void setPointPositif(double pointPositif) {
		this.pointPositif = pointPositif;
	}

	public double getPointNegatif() {
		return pointNegatif;
	}

	public void setPointNegatif(double pointNegatif) {
		this.pointNegatif = pointNegatif;
	}

}
